package left42dead;

/**
 * Represents a wooden stake item that the humans can pick up to kill vampires
 */
public class WoodenStake extends Weapon
{

    /**
     * Create a wooden stake for signle use
     */
    public WoodenStake ()
    {
        super(1);
    }

    /**
     * Use the Wooden Stake to purify a vampire
     */
    public void use (Character target)
    {
        if (!isOutOfAmmo())
        {
            if (target instanceof Vampire)
            {
                target.setDead();
                ammo--;
            }
        }
    }
}
